package com.zlx.entities;

import java.util.List;

/**
 * @Author 周罗校
 * @Description
 * @ClassName Student
 * @date 2020.10.09 11:44:03
 * 该版权归周罗校所有，最终解释权以官方为准
 */
public class Student {
    //一对一
    private Address address;

    //一对多
    private List<Course> list;

    public List<Course> getList() {
        return list;
    }

    public void setList(List<Course> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Student{" +
                "address=" + address +
                ", list=" + list +
                ", stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                ", stuAge=" + stuAge +
                ", stuPassword='" + stuPassword + '\'' +
                ", addrId=" + addrId +
                '}';
    }

    private Integer stuId;//BIGINT(20) NOT NULL AUTO_INCREMENT COMMENT '学生编号',
    private String stuName;//VARCHAR(50) NULL DEFAULT NULL COMMENT '学生名字',
    private Integer stuAge;//INT(11) NULL DEFAULT NULL COMMENT '学生年龄',
    private String stuPassword;//VARCHAR(50) NULL DEFAULT NULL COMMENT '密码',
    private Integer addrId;

    public Student( Integer stuId, String stuName, Integer stuAge, String stuPasswor) {
        this.stuId = stuId;
        this.stuName = stuName;
        this.stuAge = stuAge;
        this.stuPassword = stuPassword;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public Integer getAddrId() {
        return addrId;
    }

    public void setAddrId(Integer addrId) {
        this.addrId = addrId;
    }

    public Student() {
    }


    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuPassword() {
        return stuPassword;
    }

    public void setStuPassword(String stuPassword) {
        this.stuPassword = stuPassword;
    }
}
